//
//  Integer.java
//  joosVM
//
//  Created by Smári Waage on 4.9.2009.
//  Copyright 2009 smari.org. All rights reserved.
//
package java.lang;
public final class Integer extends Number {

	//static int	MAX_VALUE = 2147483647; 
	//static int	MIN_VALUE = -214748364;
	
	//static Class TYPE;
	
	private final int value;
	
	public Integer(int value){
		this.value = value;
	}
	
	public int intValue()
	{
		return this.value;
	}
	
	public static Integer boxNextInt(){
		return new Integer(1);
	}
	public static native int parseInt(String s);
	
	/*
	byte byteValue() 
	
	int	compareTo(Integer anotherInteger) 
	
	int	compareTo(Object o) 
	
	static Integer	decode(String nm) 
	Decodes a String into an Integer.
	double	doubleValue() 
	Returns the value of this Integer as a double.
	boolean	equals(Object obj) 
	Compares this object to the specified object.
	float	floatValue() 
	Returns the value of this Integer as a float.
	static Integer	getInteger(String nm) 
	Determines the integer value of the system property with the specified name.
	static Integer	getInteger(String nm, int val) 
	Determines the integer value of the system property with the specified name.
	static Integer	getInteger(String nm, Integer val) 
	Returns the integer value of the system property with the specified name.
	int	hashCode() 
	Returns a hashcode for this Integer.
		
		long	longValue() 
		Returns the value of this Integer as a long.
		static int	parseInt(String s) 
		Parses the string argument as a signed decimal integer.
		static int	parseInt(String s, int radix) 
		Parses the string argument as a signed integer in the radix specified by the second argument.
		short	shortValue() 
		Returns the value of this Integer as a short.
		static String	toBinaryString(int i) 
		Creates a string representation of the integer argument as an unsigned integer in base 2.
		static String	toHexString(int i) 
		Creates a string representation of the integer argument as an unsigned integer in base 16.
		static String	toOctalString(int i) 
		Creates a string representation of the integer argument as an unsigned integer in base 8.
		String	toString() 
		Returns a String object representing this Integer's value.
		static String	toString(int i) 
		Returns a new String object representing the specified integer.
		static String	toString(int i, int radix) 
		Creates a string representation of the first argument in the radix specified by the second argument.
		static Integer	valueOf(String s) 
		Returns a new Integer object initialized to the value of the specified String.
		static Integer	valueOf(String s, int radix) 
		Returns a new Integer object initialized to the value of the specified String.
	 
	 */
}
